import axios from 'axios'

const requer = axios.create({
  baseURL: 'http://toutiao-app.itheima.net'
})

const userLogin = ({ mobile, code }) => {
  return requer({
    url: '/v1_0/authorizations',
    method: 'post',
    data: {
      mobile,
      code
    }
  })
}
export { userLogin }
